﻿using System;

namespace TeBigCoreApi.Common
{
    public static class MyRandom
    {
        private static Random random = new Random();

        public static int NextInt(int minimum, int maximum)
        {
            return random.Next(minimum, maximum);
        }

        public static uint NextUInt(uint minimum, uint maximum)
        {
            return (uint)random.Next((int)minimum, (int)(maximum / 2)) + (uint)random.Next((int)minimum, (int)(maximum / 2));
        }

        public static double NextDouble(double minimum, double maximum)
        {
            return random.NextDouble() * (maximum - minimum) + minimum;
        }
    }
}